import pandas as pd


def add_df(df, i):
    d = {}
    d['id'] = i
    df = pd.concat([df, pd.DataFrame([d])], ignore_index=True)
    print(id(df))


if __name__ == '__main__':
    print('start')
    df = pd.DataFrame()
    print(id(df))
    for i in range(0, 3):
        add_df(df, i)
        # d = {}
        # d['id'] = i
        # df = pd.concat([df, pd.DataFrame([d])], ignore_index=True)

    print(df)
    print(id(df))
